import React, {Component} from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';

class PureRenderDemo extends Component {
  constructor (props) {
    super(props);
    this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
    this.defaultClass = ''
  }
  render () {
    // console.log('render 了')
    return (
      <div>
        <div className={this.props.className || this.defaultClass}>foo</div>
        <div>aaa</div>
      </div>
    )
  }
}

export default PureRenderDemo;
